package com.zhuiYun.project.api.slideshow.controller;


import com.zhuiYun.project.api.slideshow.entity.Carousel;
import com.zhuiYun.project.api.slideshow.model.CarouselModel;
import com.zhuiYun.project.api.slideshow.service.carouselService;
import com.zhuiYun.project.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/carousel")
@CrossOrigin
public class carouselController {

    @Autowired
    carouselService carouselservice;

    @GetMapping("carousellist")
    CommonResult carousellist(CarouselModel carouselModel){
        CommonResult commonResult = carouselservice.carousellist(carouselModel);
        return commonResult;
    }


}
